const expect=require('chai').expect;

describe('members([])',()=>{
    it('include',()=>{
        expect([1,2,3]).include.members([3,1]);
    });

    it('不同顺序',()=>{
        expect([1,2,3]).members([2,3,1]);
    });

    it('不同类型',()=>{
        expect([1,2,'3']).members([2,3,1]);
    });

    it('deep-array',()=>{
        expect([1,2,[3,4]]).deep.include.members([[3,4]]);
    });

    it('deep-obj',()=>{
        expect([{list:[1,2,[3,4,['5','6']]],obj:{a:{b:{c:{d:'D'}}}}}]).deep.include.members([{list:[1,2,[3,4,['5','6']]],obj:{a:{b:{c:{d:'D'}}}}}]);
    });

});